<template>
  <el-card shadow="never">
    <div slot="header" class="clearfix">
      <span>统计图</span>
    </div>
    <div style="height: 320px;">
      <common-chart :chart-data="chartData"/>
    </div>
  </el-card>
</template>

<script>

import CommonChart from "@/views/echarts/CommonChart.vue";

export default {
  name: "Piechart",
  components: {CommonChart},
  data() {
    return {
      chartData: {
        tooltip: {
          trigger: 'item'
        },
        legend: {
          orient: 'vertical',
          left: 'right'
        },
        series: [
          {
            name: 'Access From',
            type: 'pie',
            radius: '50%',
            data: [
              { value: 580, name: 'Email' },
              { value: 484, name: 'Union Ads' },
              { value: 300, name: 'Video Ads' }
            ],
            emphasis: {
              itemStyle: {
                shadowBlur: 10,
                shadowOffsetX: 0,
                shadowColor: 'rgba(0, 0, 0, 0.5)'
              }
            }
          }
        ]
      }
    }
  },
  created() {
  },
  methods: {}
}
</script>

<style scoped lang="scss">

</style>
